package test;

public class Client {
    public static void main(String[] args){
        FlyweightFactory factory=new FlyweightFactory();
        Flyweight fly= factory.factory(new Character('1'));
        fly.operation("第4页");
        fly= factory.factory(new Character('2'));
        fly.operation("第5页");
        fly= factory.factory(new Character('1'));
        fly.operation("第8页");
    }
}
